
<%--
  Created by IntelliJ IDEA.
  User: hanjiejie
  Date: 2022/5/27
  Time: 15:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        table{
            border: 1px solid #e62c35;
            width: 1000px;
            margin: 10px auto;
            text-align: center;
            border-collapse: collapse;
        }
        tr{
            border: 1px solid orange;
            height: 50px;
            text-align: center;
        }
        td,th{
            border: 1px solid orange;

        }
        h2{
            text-align:center;
        }
    </style>
</head>
<body>
<h2> 欢迎${loginUser.username}</h2>
<table>
<tr>
    <th>编号</th>
    <th>姓名</th>
    <th>生日</th>
    <th>性别</th>
    <th>职业</th>
    <th>住所</th>
    <th>手机</th>
    <th colspan="4">操作</th>
</tr>
<%--    这个是展示页面吧  你刚改完成需要重新加载这个   重新查询就可以了 他会自动跳转--%>
<c:forEach items="${List}" var="list">
    <tr>
        <td>${list.id}</td>
        <td>${list.name}</td>
        <td>${list.birthday}</td>
        <td>${list.gender}</td>
        <td>${list.career}</td>
        <td>${list.address}</td>
        <td>${list.mobile}</td>
        <td>${list.picture}</td>
        <td><a href="goods?method=AllOne&id=${list.id}" >明细</a></td>
        <td><a>添加</a></td>
        <td><a href="goods?method=update&id=${list.id}">修改</a></td>
        <td><a>删除</a></td>&nbsp;&nbsp;&nbsp;
    </tr>

</c:forEach>
</table>
</body>
</html>